package server;

import server.business.chat.ChatHandlerRegistration;
import server.business.login.LoginHandlerRegistration;
import server.business.play.PlayHandlerRegistration;
import server.business.shop.ShopHandlerRegistration;
import server.business.task.TaskHandlerRegistration;
import server.business.test.TestHandlerRegistration;
import server.messageId.C2SMessageId;

import com.core.ModuleRegistration;
import com.core.interfaces.IHandlerManager;
import com.core.interfaces.IMessageManager;
/**
 * 服务器模块注册
 */
public class ServerModuleRegistration extends ModuleRegistration {

	public ServerModuleRegistration(IMessageManager messageManager,
			IHandlerManager handerManager) {
		super(messageManager, handerManager);
	}

	@Override
	public void registerModule()
	{
		register(C2SMessageId.Login.MODULE_ID, new LoginHandlerRegistration());
		register(C2SMessageId.Test.MODULE_ID, new TestHandlerRegistration());
		register(C2SMessageId.Chat.MODULE_ID, new ChatHandlerRegistration());
		register(C2SMessageId.Shop.MODULE_ID, new ShopHandlerRegistration());
		register(C2SMessageId.Task.MODULE_ID, new TaskHandlerRegistration());
		register(C2SMessageId.PLAY.MODULE_ID, new PlayHandlerRegistration());
	}

}
